package easybooking.clients;

import java.rmi.Naming;
import easybooking.FlightManagement;
import java.net.MalformedURLException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;


// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.E2AE468A-24DC-E37E-0B88-6EC618DE0460]
// </editor-fold> 
public class TravelAgentClient  {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.0470AA67-332E-4F69-6605-22BEC0785C1A]
    // </editor-fold> 
    public TravelAgentClient () throws RemoteException, NotBoundException  {}
    

    public static void main(String[] args) throws RemoteException, NotBoundException {
        
        try{
        FlightManagement management = (FlightManagement)Naming.lookup("rmi://localhost:1099/FlightManagement1");

        System.out.println("Verbindung hergestellt...");

        }

        catch (MalformedURLException murle) {
			System.out.println("MalformedURLException");
			System.out.println(murle);
		}
		catch (RemoteException re) {
			System.out.println("RemoteException");
			System.out.println(re);
		}
		catch (NotBoundException e) {
			System.out.println("NotBoundException");
			System.out.println(e);
		}



    
        
    }


}

